package com.example.demo.lesson2;

public class RecommenderImplementation {
    public String[] recommendMovies(String movie) {
//使用基于内容的过滤器来寻找类似的电影
        CollaborativeFilter filter = new CollaborativeFilter();
        String[] results = filter.getRecommendations("Finging Rory");
//返回结果
        return results;
    }


        //使用过滤器接口选择过滤器
        private Filter filter;

        public RecommenderImplementation(Filter filter) {
            super();
            this.filter = filter;
        }

        //使用过滤器来获得推荐

    }



